package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult queryByPage(EmployeePageQueryDTO employeePageQueryDTO);


    /**
     * 员工新增
     * @param employeeDTO
     * @return
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * 员工账号状态管理
     * @param status
     * @param id
     * @return
     */
    void statusManagement(Integer status, Long id);

    /**
     * 根据id查询员工信息
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * 修改员工，根据id查询回显
     * @param employeeDTO
     * @return
     */
    void update(EmployeeDTO employeeDTO);

    /**
     * 员工密码修改
     * @param passwordEditDTO
     */
    void changePassword(PasswordEditDTO passwordEditDTO);
}
